package com.catchu.pattern.creational.构造器模式.bill;

/**
 * 国内账单实体类
 */
public class DemosticBill {

    /**
     * 原价
     */
    public float basicPrice = 0;

    /**
     * 折扣
     */
    public float discount = 0;

    /**
     * 运费
     */
    public float freight = 0;

    /**
     * 总费用
     */
    public float total = 0;


    @Override
    public String toString() {
        return "订单类型：本地购\n原价：" + basicPrice + "元\n折扣：" + discount + "元\n运费：" + freight + "元\n合计：" + total + "元\n";
    }
}
